﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="InfoStuffStore.Admin.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        function ValidatePage() {
            var isvalid = true;
            if (document.getElementById("<%=txtUser.ClientID %>").value == "") {
                 isvalid = false;
             }
             if (document.getElementById("<%=txtPassword.ClientID %>").value == "") {
                 isvalid = false;
             }

             if (!isvalid) {
                 alert('User and password fields are required!');
                 return false;
             }

             return true;
         }
    </script>
    <h2>Admin Login</h2>
        <hr />
    <div style="margin-left: 20px; width:230px">
        
        Admin User:<br />
        <asp:TextBox ID="txtUser" runat="server" CssClass="required input_field"></asp:TextBox>
        <br /><br />
        Admin Password:<br />
        <asp:TextBox ID="txtPassword" runat="server" CssClass="required input_field"></asp:TextBox>
        <br /><br />
        <asp:Button ID="btnSubmit" runat="server" Text="Login"
            CssClass="submit_btn float_r" OnClick="btnSubmit_Click" OnClientClick="return ValidatePage();" />
    </div>
</asp:Content>
